<?php
class Mozg_Source_Table_Config extends Mozg_Config {
	
	protected $_fields;
	
	public static function Get($path = false)
	{
		return self::GetInstance('table/'. $path, get_class());
	}

	public function GetTable()
	{
		return $this->_config['table'];
	}

	public function GetFieldsMap()
	{
		if (!is_array($this->_config['fields']))
		{
			$this->_config['fields'] = array();
		}
			
		return $this->_config['fields'];
	}
}
